import { getRegularFabricList } from "../api/purchase/fabric";
import { formatSelectList } from "@/utils/business.js";
export default {
  data() {
    return {
      productList: [],
    };
  },
  created() {
    this.fetchProductList();
  },
  methods: {
    fetchProductList() {
      getRegularFabricList().then((res) => {
        const { rows } = res;
        this.productList = formatSelectList(rows, "productName");
      });
    },
  },
};
